[HVM] Allow more dynamic use of the qemu serial lines by allowing the Summagraphics...
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 1 Jun 2006 17:32:04 +0000 (18:32 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 1 Jun 2006 17:32:04 +0000 (18:32 +0100)
commitbee50046c978b6bca682643655c72fc6cf383cba
treeae7d34386a6e777db677908c91599b09cc6e1352
parentbf39d68ed80a20770db29e2285966d1139c175dc
[HVM] Allow more dynamic use of the qemu serial lines by allowing the Summagraphics port to float.

qemu will emulate up to 4 serial lines (COM1 - COM4).  One of these
lines supports a Summagraphics protocol.  This has changed recently,
and it's now always COM2.  This patch allows the user to specify
to qemu which lines should be serial lines, and the code will place
the Summagraphics compatible line at just above the last specified
serial line.  qemu defaults serial line 0 (COM1) to be "vc", resulting
in the Summagraphics support residing on COM2. This is in keeping
with the current behavior.

The results, via qemu command line, are:
<none>                                    COM2
-serial x                                 COM2
-serial x -serial x                       COM3
-serial x -serial x -serial x             COM4
-serial x -serial x -serial x -serial x  <none>

The results are deterministic, and allow the use of up to 4 serial
lines including none with Summagraphics support.  There is no
change from current behavior, unless requested.

Signed-off-by: Ben Thomas <ben@virtualiron.com>
tools/ioemu/hw/pc.c
tools/ioemu/vl.c
tools/ioemu/vl.h